<!--
  Generated template for the UserAgentDetailPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
    <ion-navbar>
        <ion-title>
            <ion-segment [(ngModel)]="choose" (ionChange)="segmentChanged($event)">
                <ion-segment-button value="one">
                    一级代理
                </ion-segment-button>
                <ion-segment-button value="two">
                    二级代理
                </ion-segment-button>
            </ion-segment>
        </ion-title>
    </ion-navbar>
</ion-header>


<ion-content>
    <div class="head">
        <div float-left >
            <p>
                <img src="./assets/imgs/agent/people.png" alt="">
                {{ downlone?.mansum }}
            </p>
            <span>一级代理（人）</span>
        </div>
        <div float-left >
            <p>
                <img src="./assets/imgs/agent/money.png" alt="">
                {{ downlone?.one_divide }}
            </p>
            <span>带来收益（元）</span>
        </div>
    </div>
    <ul class="list">
        <li *ngFor="let item of Arr; let i=index;" >
            <img 
                float-left 
                src="{{ item?.headurl }}" 
                alt=""
                onerror="onerror=null;src='./assets/icon/logo.png'">
            <div float-left >
                <p>{{ item.nickname }}</p>
                <span>ID:{{ item.id }}</span>
                &nbsp;&nbsp;
                <span>{{ item.reg_time }}</span>
            </div>
            <span float-right class="get-money" >
                <i>+{{ item.line }}</i>
                元
            </span>
        </li>
    </ul>
</ion-content>
